package com.example.teesystem.entity;

import com.example.teesystem.common.utils.TimeUtil;
import lombok.Data;

/**
 * @author punch
 * @data 2021-09-27 14:51
 */
@Data
public class LoginInfo {//存贮用户登陆的盐
    private String salt;
    private int errorLoginTimes;
    private int lastLoginTime;

    public LoginInfo(){
        salt="";
        errorLoginTimes = 0;
        lastLoginTime = TimeUtil.getSecondTimestamp();
    }

    public LoginInfo(String salt){
        this.salt = salt;
        errorLoginTimes = 0;
        lastLoginTime = TimeUtil.getSecondTimestamp();
    }
}
